package com.goodboys.base.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by CJ on 2018-05-19.
 */
public class BaseReqBean implements Serializable {

    private String id;

    private Double lng;

    private  Double lat;

    private Integer range;

    private Integer type;

    private Integer page;

    private Integer size;

    private String title;

    private String content ;

    private Integer tag;

    private String keyword;

    private String name;

    private Integer flag;

    private  String userId;

    private String commentId;

    private String infoId;//信息id

    private Date createTime;

    private Date updateTime;

    private String phone;

    private String pwd;

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getInfoId() {
        return infoId;
    }

    public void setInfoId(String infoId) {
        this.infoId = infoId;
    }

    public String getCommentId() {
        return commentId;
    }

    public void setCommentId(String commentId) {
        this.commentId = commentId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    private Integer type1;//nearUsers临时使用的

    public Integer getType1() {
        return type1;
    }

    public void setType1(Integer type1) {
        this.type1 = type1;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Double getLng() {
        return lng;
    }

    public void setLng(Double lng) {
        this.lng = lng;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public Integer getRange() {
        return (range == null) ? 100 : range;
    }

    public void setRange(Integer range) {
        this.range = range;
    }

    public Integer getType() {
        return (type != null) ? type : 0;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getPage() {
        return (page == null) ? 1 : page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return (size == null) ? 10000 : size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getTag() {
        return tag;
    }

    public void setTag(Integer tag) {
        this.tag = tag;
    }

    @Override
    public String toString() {
        return "BaseReqBean{" +
                "id='" + id + '\'' +
                ", lng=" + lng +
                ", lat=" + lat +
                ", range=" + range +
                ", type=" + type +
                ", page=" + page +
                ", size=" + size +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", tag=" + tag +
                ", keyword='" + keyword + '\'' +
                '}';
    }
}
